<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="../dist/pandyle.js"></script>
    <title>Document</title>
</head>
<body>
    <div class="main">
        <div>{{name}}</div>
        <div>{{phone}}</div>
    </div>
    <div class="inputs">
        <input type="text" name="name">
        <input type="text" name="phone">
    </div>

    <script>
        var vm = $('.main').vm({name: '', phone: ''});
        var inputs = $('.inputs').inputs();
        inputs.callBack = function(name, value){
            vm.set(name, value);
        }
    </script>
</body>
</html>